I=-I ./include -I /usr/local/cern/root/include -I /usr/local/CLHEP/include -I /usr/local/cern/geant4.9.4.p01/include
L=$(shell root-config --libs) -L/usr/local/lib/ -lCLHEP-Random-2.1.0.1

F= -std=c++0x -g -O0

all: main DataReader
	g++ -o ./bin/corrHistos ./build/*.o $L $F

clean:
	rm -f build/*
	
main:
	g++ -c -o ./build/main.o ./src/main.cpp $I $F
	
DataReader:
	g++ -c -o ./build/DataReader.o ./src/DataReader.cpp $I $F
